package test5;

public class Score {
    private int RegularGrade;
    private int FinalGrade;

    public Score(int RegularGrade,int FinalGrade){
        this.FinalGrade=FinalGrade;
        this.RegularGrade=RegularGrade;
    }

    public int getRegularGrade() {
        return RegularGrade;
    }

    public void setRegularGrade(int regularGrade) {
        RegularGrade = regularGrade;
    }

    public int getFinalGrade() {
        return FinalGrade;
    }

    public void setFinalGrade(int finalGrade) {
        FinalGrade = finalGrade;
    }

    public int total(){
        return (int)(RegularGrade*0.4+FinalGrade*0.6);
    }
}
